package scanner;

import parser.TokenType;

public class ScannerTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner teste = new Scanner();
		Token token = new Token();
		try {
			
			token = teste.getNextToken();
			while(token.getKind() != TokenType.EOT){
				System.out.print(token.getSpelling()+" | ");
				token = teste.getNextToken();
			}
		} catch (LexicalException e) {
			e.printStackTrace();
		}
	}

}
